# YApi QuickType插件生成，具体参考文档:https://plugins.jetbrains.com/plugin/18847-yapi-quicktype/documentation


class UserInfo:
    name: str
    type: str
    userId: str
    token: str

    def __init__(self, name: str, type: str, userId: str, token: str) -> None:
        self.name = name
        self.type = type
        self.userId = userId
        self.token = token


def json2UserInfo(j):
    return UserInfo(name=j['name'], type=j['type'], userId=j['userId'], token=j['token'])
